package com.jindy.module.drawBill.service;

import java.util.List;

import com.jindy.common.core.domain.AjaxResult;
import com.jindy.module.drawBill.domain.DrawBill;
import com.jindy.module.drawBill.domain.DrawBillSearch;

/**
 * 开票申请Service接口
 * 
 * @author yu
 * @date 2023-05-17
 */
public interface IDrawBillService 
{
    /**
     * 查询开票申请
     * 
     * @param id 开票申请主键
     * @return 开票申请
     */
    public DrawBill selectDrawBillById(Long id);

    /**
     * 查询开票申请列表
     * 
     * @param drawBill 开票申请
     * @return 开票申请集合
     */
    public List<DrawBill> selectDrawBillList(DrawBill drawBill);

    /**
     * 新增开票申请
     * 
     * @param drawBill 开票申请
     * @return 结果
     */
    public void insertDrawBill(DrawBill drawBill);

    /**
     * 修改开票申请
     * 
     * @param drawBill 开票申请
     * @return 结果
     */
    public int updateDrawBill(DrawBill drawBill);

    /**
     * 批量删除开票申请
     * 
     * @param ids 需要删除的开票申请主键集合
     * @return 结果
     */
    public int deleteDrawBillByIds(Long[] ids);

    /**
     * 删除开票申请信息
     * 
     * @param id 开票申请主键
     * @return 结果
     */
    public int deleteDrawBillById(Long id);

    /**
     * 获取开票申请信息
     * @param drawBillSearch
     * @return
     */
    AjaxResult getSettlement(DrawBillSearch drawBillSearch);

    /**
     * 获取可结算余额
     * @param serialNum
     * @return
     */
    AjaxResult getAblePayAmount(String serialNum);
}
